import axios from '@/api/request.ts'

interface ILogin {
  account:string
  password:string
}


export const loginApi = (data:ILogin)=>{
  return axios.post('/login',data)
}

// 文章列表接口api
export const articleListApi = ()=>{
  return axios.get('/article/list')
}

// 文章列表详情api  /article/${id}
export const articleDetailApi = (id:number)=>{
  return axios.get(`/article/${id}`)
}
